In this video we learn how to customize a lovely price chart.
So for example we can change colors and we can add and title and axis labels and many more things.
And there we have still imported here.
Our normalized data frame and with the I plot method we can simply create an interactive luckily uh
graph.
And if you recall that plot lipo then there's also a kind parameter of every can define the kind of
the graph.
And for example here you want to have a line graph or a line chart.
So this is here.
Nothing new actually.
So here we have our six stocks and there's an additional parameter call to fill.
And if you pass a true then we are actually filling our traces here.
So let's have a look.
So in finance this is actually common practice to have fear filled to trace this or traffic kind of
areas.
So we can also select a single stock for example the Boeing stock and then we cannot.
Also the Coca-Cola stock.
So this is pretty cool actually.
And of course also we can change the color or the color scales or follow graphs and we can get them
all available the color scales with the method the cufflinks that colors that scales.
So let's have a look.
And for example here we have the color scales blues or greens and many more actually and now we can
pass these colors Gates as a string to the color scale per meter.
And so we have passed true to the full power meter.
And let's have a look
so here we have uh dark and light greens.
And uh we could also try another color scale.
So for example here I'm reds
so here we have red colors and we can also change the overall theme of our graph and we can get all
available themes with uh the cufflinks method cat themes
so here we have a g g plot purple so last space and so on and now we can create another plot where we
use the color scale that red blue and we select the solar theme.
So let's have a look.
And the scene looks pretty like a Bloomberg graph.
So this is pretty cool actually.
And of course we can select other themes but uh I think the solar theme is pretty cool here.
And then of course we can also add untitled for our plot and also explore labels and Y labels and uh
we can do this with the title page meta.
So here we pass us stocks.
So here we have six U.S. stocks and we pass the time to the ex title page meta to create an ex Labor
MP past the stock price to the VI title perimeter.
So let's have a look.
So here we have now our graph with a title and we have um x axis and y axis labels and uh finally we
can also change um the kind of our plot to spread.
And we only select the apple and the Boeing stock.
So the spread graph works actually best if you only select the two stocks here and uh we pass through
with the full parameter we use the red blue color scale and also again the solar team.
And we also pass at Highland some excess label so let's have a look
so here we have the Apples stock and the Boeing stock and the below the price chart we can see the spread.
So this is actually the difference between both charts and at this place actually the difference between
uh the normalized Apple stock price and the normalized Boeing stock price.
So initially we are starting here in red.
So this means that that year the normalized Boeing stock prices higher than the Apple stock price and
then he has been getting green.
So here we have a positive difference between Apple and Boeing.
So the spread is pretty helpful when we want to compare and analyze the difference between stocks or
other financial securities.
And with this we are finished with this video and I hope to see you also in the next one by.